﻿# The script of the game goes in this file.

# Declare characters used by this game. The color argument colorizes the
# name of the character.

define a = Character("Alex Jones")
define p = Character("[pf]", who_color="#ff9600")

#set script defaults here
default cuck = 0
default redpill = 0
default alex = 0

#Define effects
define flash = Fade(0.25, 0.5, 0.75, color="#fff")
define quickflash = Fade(.1, 0.1, 0.25, color="#fff")
define lightning = Fade(0.1,0.1,0.5, color="#fff")


default menu1 = True
default menu2 = True
default menu3 = True
default menu4 = True
default menu5 = True
default menu6 = True

default extraevents = []

init:
    python:
        def resetmenu():
            global menu1
            global menu2
            global menu3
            global menu4
            global menu5
            global menu6
            menu1, menu2, menu3, menu4, menu5, menu6 = True, True, True, True, True, True

image bg warning = "warning"

# Splash Screen
label splashscreen:
    play music "music/pavikingtog.mp3"
    scene black
    show bg warning with dissolve
    with Pause(5)

    scene black with dissolve
    with Pause(1)

    show text "H8Chan Games Presents ..." with dissolve
    with Pause(2)

    hide text with dissolve
    with Pause(1)

    show text "Red Pill: The Game" with dissolve
    with Pause(4)

    hide text with dissolve
    with Pause(1)

    show text "Special thanks to autists everywhere." with dissolve
    with Pause(2)

    hide test with dissolve
    with Pause(1)
    $ renpy.transition(dissolve)

    return

    python:
        if not persistent.set_volumes:
            persistent.set_volumes = True
            _preferences.volumes['music'] *= .80

#define any new defaults here.
label after_load:
    if not hasattr(renpy.store,"cuck"):
        $ dep = False
    if not hasattr(renpy.store,"redpill"):
        $ m_met = False
    if not hasattr(renpy.store,"alex"):
        $ m_score = 0
    return

# The game starts here.

label start:

    $ renpy.clear_game_runtime()

    # Show a background. This uses a placeholder by default, but you can
    # add a file (named either "bg room.png" or "bg room.jpg") to the
    # images directory to show it.

    scene main_alex

    # This shows a character sprite.

    # These display lines of dialogue

    a "Welcome to Red Pill: The Game."

# Set Characters first and last name.
    python:
        pf = renpy.input("What's your name?")
        pf = pf.strip()

        if not pf:
            pf = "Jake"

    "Great, [pf] it is then\."

    menu:

        a "Do you think you can best the logic behind the world's largest growing movement?"

        "Yes I can you dirty Nazi pig!":
            p "Hahaha, 'logic' careful Alex the Lizard people might get you"
            a "Oh this is going to be a fun one"
#            $ renpy.movie_cutscene("bonus_alex_angry.webm")
#            $ Movie(fps=24, size=None, channel='movie', play=None, mask=None, mask_channel=None, image="pepe.jpg")
        "No.":
            a "Well that's okay, maybe you'll learn something along the way."
    a "Good bye"
    # This ends the game.

    return
